---
layout: single
elementName: object
---

<section id="object" class="element">
  <header class="element-header">
    <nav class="element-links">
        <span>
          Type: <strong>block</strong>
        </span>
      <span>
        Self-closing:
        <strong>
            No
        </strong>
      </span>
      <a class="element-links-direct" href="{{site.url}}/element/object/" data-element-name="object" data-tooltip="Single page for this element">Permalink</a>
      <a class="element-share" data-tooltip="Share on Twitter or Facebook" data-element-name="object">Share</a>
      <a target="_blank" href="https://developer.mozilla.org/en/docs/Web/HTML/Element/object" data-tooltip="See on Mozilla Developer Network" rel="external">MDN</a>
    </nav>
    <h2 class="element-name">
      <a href="#object">
        <span>#</span>
        object
      </a>
    </h2>
    <div class="element-description">
      <p>Defines a container for <strong>external resource</strong>.</p>

    </div>
  </header>

      <div id="object-example-0" class="example">
        <p class="example-label">
          <strong>Example:</strong>
          <a class="example-clipboard" data-tooltip="Click to copy code" data-clipboard-target="#object-example-0-code">Copy</a>
        </p>
        <article class="example-preview">
            <div class="example-output"><object type="application/x-shockwave-flash" data="/assets/golf.swf" width="800" height="360">
  <param name="movie" value="/assets/golf.swf">
  <param name="wmode" value="transparent">
  <p>You need to enable Flash to view this content.</p>
</object></div>
          <div id="object-example-0-code" class="example-code">{% highlight html %}<object type="application/x-shockwave-flash" data="/assets/golf.swf" width="800" height="360">
  <param name="movie" value="/assets/golf.swf">
  <param name="wmode" value="transparent">
  <p>You need to enable Flash to view this content.</p>
</object>{% endhighlight %}</div>
        </article>
      </div>

    <article id="object-data" class="attribute">
      <header class="attribute-header">
        <h3 class="attribute-name">
          <code class="tag" data-tooltip="Click to copy" data-clipboard-text="data">
            data
          </code>
        </h3>
        <div class="attribute-description">
          <p>The URL of the object data.</p>

        </div>
      </header>

      <div class="attribute-values">
          <article id="object-data-assetsgolfswf" class="value">
            <header class="value-header">
                <h4 class="value-name">
                  <code class="tag" data-tooltip="Click to copy data=&quot;/assets/golf.swf&quot;" data-clipboard-text="data=&quot;/assets/golf.swf&quot;">
                      "/assets/golf.swf"
                  </code>
                </h4>
              <div class="value-description">
                <p>The value must be a valid URL.</p>

              </div>
            </header>
            <aside class="value-preview">
              <div class="value-output"><object  data="/assets/golf.swf" type="application/x-shockwave-flash"></object></div>
            </aside>
          </article>
      </div>
    </article>
    <article id="object-type" class="attribute">
      <header class="attribute-header">
        <h3 class="attribute-name">
          <code class="tag" data-tooltip="Click to copy" data-clipboard-text="type">
            type
          </code>
        </h3>
        <div class="attribute-description">
          <p>Defines the type of the application.</p>

        </div>
      </header>

      <div class="attribute-values">
          <article id="object-type-applicationx-shockwave-flash" class="value">
            <header class="value-header">
                <h4 class="value-name">
                  <code class="tag" data-tooltip="Click to copy type=&quot;application/x-shockwave-flash&quot;" data-clipboard-text="type=&quot;application/x-shockwave-flash&quot;">
                      "application/x-shockwave-flash"
                  </code>
                </h4>
              <div class="value-description">
                <p>The value must be a valid <a href="https://developer.mozilla.org/en-US/docs/Glossary/MIME_type">content type</a>.</p>

              </div>
            </header>
            <aside class="value-preview">
              <div class="value-output"><object  data="/assets/golf.swf" type="application/x-shockwave-flash"></object></div>
            </aside>
          </article>
      </div>
    </article>
    <article id="object-height" class="attribute">
      <header class="attribute-header">
        <h3 class="attribute-name">
          <code class="tag" data-tooltip="Click to copy" data-clipboard-text="height">
            height
          </code>
        </h3>
        <div class="attribute-description">
          <p>Defines the height of the object.</p>

        </div>
      </header>

      <div class="attribute-values">
          <article id="object-height-50" class="value">
            <header class="value-header">
                <h4 class="value-name">
                  <code class="tag" data-tooltip="Click to copy height=&quot;50&quot;" data-clipboard-text="height=&quot;50&quot;">
                      "50"
                  </code>
                </h4>
              <div class="value-description">
                <p>The height in pixels.</p>

              </div>
            </header>
            <aside class="value-preview">
              <div class="value-output"><object  data="/assets/golf.swf" type="application/x-shockwave-flash" height="50"></object></div>
            </aside>
          </article>
      </div>
    </article>
    <article id="object-width" class="attribute">
      <header class="attribute-header">
        <h3 class="attribute-name">
          <code class="tag" data-tooltip="Click to copy" data-clipboard-text="width">
            width
          </code>
        </h3>
        <div class="attribute-description">
          <p>Defines the width of the object.</p>

        </div>
      </header>

      <div class="attribute-values">
          <article id="object-width-150" class="value">
            <header class="value-header">
                <h4 class="value-name">
                  <code class="tag" data-tooltip="Click to copy width=&quot;150&quot;" data-clipboard-text="width=&quot;150&quot;">
                      "150"
                  </code>
                </h4>
              <div class="value-description">
                <p>The width in pixels.</p>

              </div>
            </header>
            <aside class="value-preview">
              <div class="value-output"><object  data="/assets/golf.swf" type="application/x-shockwave-flash" height="50" width="150"></object></div>
            </aside>
          </article>
      </div>
    </article>
</section>
